package muilty_thread.atomic;

import java.util.concurrent.atomic.AtomicLong;

public class LongTest {



    public static void main(String[] args) {
        AtomicLong atomicLong = new AtomicLong();
        atomicLong.set(12);
        System.out.println(atomicLong.get());
        System.out.println(atomicLong.addAndGet(1));
        System.out.println(atomicLong.getAndAdd(1));
        System.out.println(atomicLong.incrementAndGet());
        System.out.println(atomicLong.incrementAndGet());


    }
}
